import request from '@/utils/request'

export function getList(data = {}) {
  return request({
    url: '/workbench/device-info/list',
    method: 'get',
    params: data
  })
}

export function getDetail(data = {}) {
  return request({
    url: '/workbench/device-info/detail',
    method: 'get',
    params: data
  })
}

// 解绑
export function remove(data = {}) {
  return request({
    url: '/workbench/device-info/remove',
    method: 'get',
    params: data
  })
}

export function add(data = {}) {
  return request({
    url: '/workbench/device-info/create',
    method: 'post',
    data
  })
}


export function update(data = {}) {
  return request({
    url: '/workbench/device-info/update',
    method: 'post',
    data
  })
}

// 智能设备列表
export function getRenovationList(data = {}) {
  return request({
    url: '/renovation/device/list',
    method: 'get',
    params: data
  })
}

export function getRenovationTypes(data = {}) {
  return request({
    url: '/renovation/device/types',
    method: 'get',
    params: data
  })
}


